package com.devplatform.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.devplatform.pojo.Ads;
import com.devplatform.pojo.dto.AdsDetailDto;
import com.devplatform.service.AdsService;
import com.devplatform.mapper.AdsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 19166
* @description 针对表【ads(广告表)】的数据库操作Service实现
* @createDate 2025-09-29 20:51:37
*/
@Service
public class AdsServiceImpl extends ServiceImpl<AdsMapper, Ads>
    implements AdsService{

    @Autowired
    private AdsMapper adsMapper;


    @Override
    public List<AdsDetailDto> getAllAds(IPage<AdsDetailDto> page, QueryWrapper<AdsDetailDto> queryWrapper) {
        return adsMapper.selectAllAds(page,queryWrapper);
    }
}




